package com.yss.sofa.report.engine.cell.visible.form;

import com.yss.sofa.report.engine.Const;
import com.yss.sofa.report.engine.cell.ReportCell;

public class CustomFormCell extends FormCell{
	private static final long serialVersionUID = 3195463072135416872L;
	private String template;
	private String extra;
	protected void init(){
		super.init();
		inputType=Const.FORM_INPUT_TYPE_CUSTOM;
	}
	public void assignTo(ReportCell cell){
		CustomFormCell _=(CustomFormCell)cell;
		super.assignTo(_);
		_.template=this.template;
		_.extra=this.extra;
	}
	public CustomFormCell create(){
		CustomFormCell _=new CustomFormCell();
		this.assignTo(_);
		return _;
	}
	public String getRenderSource() {
		return template;
	}
	public String getTemplate() {
		return template;
	}
	public void setTemplate(String template) {
		this.template = template;
	}
	public String getExtra() {
		return extra;
	}
	public void setExtra(String extra) {
		this.extra = extra;
	}
	@Override
	public boolean isCustom() {
		return true;
	}
}
